package com.metacube.questionbank.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/signout")
public class SignoutController {
	
	@RequestMapping(value = "/signoutManage")
	public ModelAndView signoutManage(HttpServletRequest request) {
		
		HttpSession session=request.getSession();
		
		session.invalidate();
		
		return new ModelAndView("../MetaQBank/index.jsp");
	}

}
